package com.smart.seven.aop.pointcutadvisor.controlflow;

import com.smart.seven.aop.pointcutadvisor.Waiter;

/**
 * Waiter代理
 *
 * @author junrui.wang
 * @create 2019/3/13
 */
public class WaiterDelegate {
    private Waiter waiter;
    public void service(String clientName){
        waiter.greetTo(clientName);
        waiter.serveTo(clientName);
    }

    public void setWaiter(Waiter waiter) {
        this.waiter = waiter;
    }
}
